package com.imau.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imau.bean.RolePermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RolePermissionMapper extends BaseMapper<RolePermission> {

   /**
    * 根据角色id查询权限
    * @param rid
    * @return
    */
   @Select("select permission_id from t_role_permission where role_id=#{rid}")
   List<String> selectPerIdsByRoleId(@Param("rid") String rid);

}
